<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td>
<div class=iconlisdiv>
{if $orderby == 'tup'}
<a href="#" onclick="setCookie('IPS{$smarty.const.COOKIE_KEY}', 'tdown'); document.location='{'index.php'|GetUrl:'c':$categoryid:'':$searchquery}';"><img src="{$templateurl}images/icon_timeup.gif" title="{$lan_timesortup}" /></a>
{elseif $orderby== 'tdown'}
<a href="#" onclick="setCookie('IPS{$smarty.const.COOKIE_KEY}', 'tup'); document.location='{'index.php'|GetUrl:'c':$categoryid:'':$searchquery}';"><img src="{$templateurl}images/icon_timedown.gif" title="{$lan_timesortdown}" /></a>
{else}
<a href="#" onclick="setCookie('IPS{$smarty.const.COOKIE_KEY}', 'tdown'); document.location='{'index.php'|GetUrl:'c':$categoryid:'':$searchquery}';"><img src="{$templateurl}images/icon_timedefault.gif" title="{$lan_timedefault}" /></a>
{/if}
{if $orderby == 'vup'}
<a href="#" onclick="setCookie('IPS{$smarty.const.COOKIE_KEY}', 'vdown'); document.location='{'index.php'|GetUrl:'c':$categoryid:'':$searchquery}';"><img src="{$templateurl}images/icon_viewup.gif" title="{$lan_viewsortup}" /></a>
{elseif $orderby== 'vdown'}
<a href="#" onclick="setCookie('IPS{$smarty.const.COOKIE_KEY}', 'vup'); document.location='{'index.php'|GetUrl:'c':$categoryid:'':$searchquery}';"><img src="{$templateurl}images/icon_viewdown.gif" title="{$lan_viewsortdown}" /></a>
{else}
<a href="#" onclick="setCookie('IPS{$smarty.const.COOKIE_KEY}', 'vdown'); document.location='{'index.php'|GetUrl:'c':$categoryid:'':$searchquery}';"><img src="{$templateurl}images/icon_viewdefault.gif" title="{$lan_viewdefault}" /></a>
{/if}
{if $orderby == 'dup'}
<a href="#" onclick="setCookie('IPS{$smarty.const.COOKIE_KEY}', 'ddown'); document.location='{'index.php'|GetUrl:'c':$categoryid:'':$searchquery}';"><img src="{$templateurl}images/icon_downloadup.gif" title="{$lan_downsortup}" /></a>
{elseif $orderby== 'ddown'}
<a href="#" onclick="setCookie('IPS{$smarty.const.COOKIE_KEY}', 'dup'); document.location='{'index.php'|GetUrl:'c':$categoryid:'':$searchquery}';"><img src="{$templateurl}images/icon_downloaddown.gif" title="{$lan_downsortdown}" /></a>
{else}
<a href="#" onclick="setCookie('IPS{$smarty.const.COOKIE_KEY}', 'ddown'); document.location='{'index.php'|GetUrl:'c':$categoryid:'':$searchquery}';"><img src="{$templateurl}images/icon_downloaddefault.gif" title="{$lan_downdefault}" /></a>
{/if}
</div>
<div class=pageselectdiv>{$lan_perpage}: 
<select name="numperpage" onchange="setCookie('IPP{$smarty.const.COOKIE_KEY}', this.options[this.selectedIndex].value); document.location='{'index.php'|GetUrl:'c':$categoryid:'':$searchquery}';">
<option value="5" {if $numperpage == 5} SELECTED{/if}>5</option>
<option value="10" {if $numperpage == 10} SELECTED{/if}>10</option>
<option value="15" {if $numperpage == 15} SELECTED{/if}>15</option>
<option value="20" {if $numperpage == 20} SELECTED{/if}>20</option>
<option value="30" {if $numperpage == 30} SELECTED{/if}>30</option>
<option value="40" {if $numperpage == 40} SELECTED{/if}>40</option>
<option value="50" {if $numperpage == 50} SELECTED{/if}>50</option>
<option value="60" {if $numperpage == 60} SELECTED{/if}>60</option>
</select>
&nbsp;&nbsp;{$lan_category}:&nbsp;{$categoryselect}
</div>

{$pagelist}
</td>
</tr>
</table>
